package com.cheetah;

import org.noear.solon.Solon;
import org.noear.solon.web.staticfiles.StaticMappings;
import org.noear.solon.web.staticfiles.repository.FileStaticRepository;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * 应用
 *
 * @author xjh
 * @date 2022/05/09
 */
@EnableScheduling
public class CheetahApp {

    public static void main(String[] args) {
        Solon.start(CheetahApp.class, args, solonApp -> {
            String upload = solonApp.cfg().get("upload.path");
            StaticMappings.add("/uploads", new FileStaticRepository(upload));
        });
        System.out.println("----------启动成功----------");
    }

}
